package com.example.chat.model;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "VDOA012_REGION")
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@DynamicInsert
@DynamicUpdate
@NoArgsConstructor
public class Region extends BaseEntity implements Serializable {

    private static final long serialVersionUID = -431136208515775323L;
    /**
     * @description 主键
     */
    @Id
//    @GenericGenerator(name = "uuidG", strategy = "org.hibernate.id.UUIDGenerator")
//    @GeneratedValue(generator = "uuidG")
    @Column(name = "DOA012_ID", length = 50)
    private String id;

    /**
     * 国家
     */
    @Column(name = "DOA012_COUNTRY", length = 50)
    private String country;

    /**
     * 省份
     */
    @Column(name = "DOA012_PROVINCE", length = 50)
    private String province;

    /**
     * 地区名称
     */
    @Column(name = "DOA012_CITY", length = 50)
    private String city;

    /**
     * 是否已删除
     */
    @Column(name = "DOA012_DELETED")
    private Boolean deleted = false;
}
